package com.leantech.android.browser.utils

import com.cscj.android.utils.LOG
import java.lang.Thread.UncaughtExceptionHandler

class CrashHandler : UncaughtExceptionHandler {

    fun init() {
        Thread.setDefaultUncaughtExceptionHandler(this)
    }

    override fun uncaughtException(t: Thread, e: Throwable) {
        LOG.e("FatalError", "thread ${t.id}", e)
    }
}